﻿using BBICMS.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace BBICMS.Model
{
    public class Post : AuditableEntity<int>
    {
      
        //public int PostId { get; set; }
        [Display(Name = "主题", Prompt = "主题")]
        [Required(ErrorMessage = "请输入主题")]
        public string Title { get; set; }
        [Display(Name = "内容")]
        public string Body { get; set; }
        [Display(Name = "概要")]
        public string Summary { get; set; }

        public int ViewCount { get; set; }
       
        [Display(Name="缩略图")]
        public string Thumbnail { get; set; }

        [StringLength(10)]
        public string Lang { get; set; }

        [Display(Name = "推荐", Prompt = "推荐")]
        public bool Recommend { get; set; }
        [Display(Name = "显示", Prompt = "显示")]
        public bool Active { get; set; }

        [Display(Name = "新闻分类")]
        public int BlogId { get; set; }
        public virtual Blog Blog { get; set; }

        [Display(Name = "关键字")]
        public string Keywords { get; set; }
        [StringLength(500)]
        public string Description { get; set; }
        public string Author { get; set; }
        public DateTime? Pubdate { get; set; }


    }
}
